<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__sysclk__ext__funcs.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__sysclk.html">SysClk       (System Clock)</a> &raquo; <a class="el" href="group__group__sysclk__ext.html">External Clock Source (EXTCLK)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad4b77c61d47878007b5c50e3baf13e51"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__ext__funcs.html#gad4b77c61d47878007b5c50e3baf13e51">Cy_SysClk_ExtClkSetFrequency</a> (uint32_t freq)</td></tr>
<tr class="memdesc:gad4b77c61d47878007b5c50e3baf13e51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the signal frequency of the External Clock Source (EXTCLK) into the internal storage to be used in <a class="el" href="group__group__sysclk__clk__hf__funcs.html#gafa8c21271b8cb1b1fd9f7fb489a8d2b3">Cy_SysClk_ClkHfGetFrequency</a>.  <a href="#gad4b77c61d47878007b5c50e3baf13e51">More...</a><br /></td></tr>
<tr class="separator:gad4b77c61d47878007b5c50e3baf13e51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga164b8c0287b292af7bdab5e216831b9b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__sysclk__ext__funcs.html#ga164b8c0287b292af7bdab5e216831b9b">Cy_SysClk_ExtClkGetFrequency</a> (void)</td></tr>
<tr class="memdesc:ga164b8c0287b292af7bdab5e216831b9b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the frequency of the External Clock Source (EXTCLK) from the internal storage.  <a href="#ga164b8c0287b292af7bdab5e216831b9b">More...</a><br /></td></tr>
<tr class="separator:ga164b8c0287b292af7bdab5e216831b9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gad4b77c61d47878007b5c50e3baf13e51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad4b77c61d47878007b5c50e3baf13e51">&#9670;&nbsp;</a></span>Cy_SysClk_ExtClkSetFrequency()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SysClk_ExtClkSetFrequency </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>freq</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the signal frequency of the External Clock Source (EXTCLK) into the internal storage to be used in <a class="el" href="group__group__sysclk__clk__hf__funcs.html#gafa8c21271b8cb1b1fd9f7fb489a8d2b3">Cy_SysClk_ClkHfGetFrequency</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">freq</td><td>The frequency of the External Clock Source.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: External precision 5MHz clock is needed to source clock path 1. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Configure the external clock input pin */</span></div><div class="line"><span class="preprocessor">#if defined(CYT2BL5CAS) || defined(CYT2B75CAS) || defined(CY_DEVICE_SERIES_XMC7100) || defined(CY_DEVICE_SERIES_XMC7200)</span></div><div class="line">    (void)<a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT21, 2, <a class="code" href="group__group__gpio__drive_modes.html#gaf2fe5dc00ba1770b37e620a01169485c">CY_GPIO_DM_HIGHZ</a>, 0x00u, P21_2_SRSS_EXT_CLK);</div><div class="line"><span class="preprocessor">#elif defined(CY_DEVICE_TVIIC2D6M)</span></div><div class="line">    (void)<a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT15, 4, <a class="code" href="group__group__gpio__drive_modes.html#gaf2fe5dc00ba1770b37e620a01169485c">CY_GPIO_DM_HIGHZ</a>, 0x00u, P15_4_SRSS_EXT_CLK);</div><div class="line"><span class="preprocessor">#elif defined(CY_DEVICE_FX3G2)</span></div><div class="line">    (void)<a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT5, 1, <a class="code" href="group__group__gpio__drive_modes.html#gaf2fe5dc00ba1770b37e620a01169485c">CY_GPIO_DM_HIGHZ</a>, 0x00u, P5_1_SRSS_EXT_CLK);</div><div class="line"><span class="preprocessor">#else</span></div><div class="line">    (void)<a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT0, 5, <a class="code" href="group__group__gpio__drive_modes.html#gaf2fe5dc00ba1770b37e620a01169485c">CY_GPIO_DM_HIGHZ</a>, 0x00u, P0_5_SRSS_EXT_CLK);</div><div class="line"><span class="preprocessor">#endif</span></div><div class="line">    <span class="comment">/* Set the EXTCLK frequency to 5MHz */</span></div><div class="line">    <a class="code" href="group__group__sysclk__ext__funcs.html#gad4b77c61d47878007b5c50e3baf13e51">Cy_SysClk_ExtClkSetFrequency</a>(5000000UL);</div><div class="line">    <span class="comment">/* Set the EXTCLK as the source for clock path 1 */</span></div><div class="line">    (void)<a class="code" href="group__group__sysclk__path__src__funcs.html#ga517f603266062d0013947ea950ed5b60">Cy_SysClk_ClkPathSetSource</a>(1UL, <a class="code" href="group__group__sysclk__path__src__enums.html#gga8ddaf9023a02dee0d1f9a5629d6ccfe6aca51f919d42d3b386f0c631768916c16">CY_SYSCLK_CLKPATH_IN_EXT</a>);</div><div class="line"></div><div class="line">    <span class="comment">/* In case if there is a need to get the EXT CLK frequency */</span></div><div class="line">    uint32_t extClkFreq = <a class="code" href="group__group__sysclk__ext__funcs.html#ga164b8c0287b292af7bdab5e216831b9b">Cy_SysClk_ExtClkGetFrequency</a>();</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga164b8c0287b292af7bdab5e216831b9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga164b8c0287b292af7bdab5e216831b9b">&#9670;&nbsp;</a></span>Cy_SysClk_ExtClkGetFrequency()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_SysClk_ExtClkGetFrequency </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the frequency of the External Clock Source (EXTCLK) from the internal storage. </p>
<dl class="section return"><dt>Returns</dt><dd>The frequency of the External Clock Source.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: External precision 5MHz clock is needed to source clock path 1. */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Configure the external clock input pin */</span></div><div class="line"><span class="preprocessor">#if defined(CYT2BL5CAS) || defined(CYT2B75CAS) || defined(CY_DEVICE_SERIES_XMC7100) || defined(CY_DEVICE_SERIES_XMC7200)</span></div><div class="line">    (void)<a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT21, 2, <a class="code" href="group__group__gpio__drive_modes.html#gaf2fe5dc00ba1770b37e620a01169485c">CY_GPIO_DM_HIGHZ</a>, 0x00u, P21_2_SRSS_EXT_CLK);</div><div class="line"><span class="preprocessor">#elif defined(CY_DEVICE_TVIIC2D6M)</span></div><div class="line">    (void)<a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT15, 4, <a class="code" href="group__group__gpio__drive_modes.html#gaf2fe5dc00ba1770b37e620a01169485c">CY_GPIO_DM_HIGHZ</a>, 0x00u, P15_4_SRSS_EXT_CLK);</div><div class="line"><span class="preprocessor">#elif defined(CY_DEVICE_FX3G2)</span></div><div class="line">    (void)<a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT5, 1, <a class="code" href="group__group__gpio__drive_modes.html#gaf2fe5dc00ba1770b37e620a01169485c">CY_GPIO_DM_HIGHZ</a>, 0x00u, P5_1_SRSS_EXT_CLK);</div><div class="line"><span class="preprocessor">#else</span></div><div class="line">    (void)<a class="code" href="group__group__gpio__functions__init.html#gaf57c501727276013d3e8974a9fb7d0a7">Cy_GPIO_Pin_FastInit</a>(GPIO_PRT0, 5, <a class="code" href="group__group__gpio__drive_modes.html#gaf2fe5dc00ba1770b37e620a01169485c">CY_GPIO_DM_HIGHZ</a>, 0x00u, P0_5_SRSS_EXT_CLK);</div><div class="line"><span class="preprocessor">#endif</span></div><div class="line">    <span class="comment">/* Set the EXTCLK frequency to 5MHz */</span></div><div class="line">    <a class="code" href="group__group__sysclk__ext__funcs.html#gad4b77c61d47878007b5c50e3baf13e51">Cy_SysClk_ExtClkSetFrequency</a>(5000000UL);</div><div class="line">    <span class="comment">/* Set the EXTCLK as the source for clock path 1 */</span></div><div class="line">    (void)<a class="code" href="group__group__sysclk__path__src__funcs.html#ga517f603266062d0013947ea950ed5b60">Cy_SysClk_ClkPathSetSource</a>(1UL, <a class="code" href="group__group__sysclk__path__src__enums.html#gga8ddaf9023a02dee0d1f9a5629d6ccfe6aca51f919d42d3b386f0c631768916c16">CY_SYSCLK_CLKPATH_IN_EXT</a>);</div><div class="line"></div><div class="line">    <span class="comment">/* In case if there is a need to get the EXT CLK frequency */</span></div><div class="line">    uint32_t extClkFreq = <a class="code" href="group__group__sysclk__ext__funcs.html#ga164b8c0287b292af7bdab5e216831b9b">Cy_SysClk_ExtClkGetFrequency</a>();</div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
